package cn.changeforyou.web.blog.test;

import cn.changeforyou.utils.matcher.url.impl.MockShiroIniUrlMattcher;
import org.junit.Test;

import java.util.regex.Pattern;

public class A {
    @Test
    public void test(){
        MockShiroIniUrlMattcher mattcher = new MockShiroIniUrlMattcher();
        mattcher.setPattern("/article/**");
        boolean matched = mattcher.isMatched("/article/list/sad");
        System.out.println(matched);

        boolean re = Pattern.compile("/article/*").matcher("/article/list").matches();
        System.out.println(re);
    }
}
